package com.ym.user.feignRpc.goodsRpc;

import com.ym.goods.entity.GoodsClassEntity;
import com.ym.user.feignRpc.fallback.GoodsServerFallBack;
import com.ym.utils.exception.CustomException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "GoodsServer",
            fallback= GoodsServerFallBack.class
)
public interface GoodsServerRPC {
    @PostMapping("/goodsCommon/get/Infor")
    Object getInfor()throws CustomException;


    @PostMapping("/goodsCommon/add/Infor")
    Object addInfor(@RequestBody GoodsClassEntity goodsClassEntity)throws CustomException;
}
